<!--
 * @Author: huangpx
 * @Date: 2023-03-14 09:27:10
 * @LastEditors: huangpx
 * @LastEditTime: 2023-04-25 16:18:19
 * @Description: file content
-->
<template>
      <menu-main v-if="isShow" :menuItem="menu" :props="props"/>
</template>
<script>
import axios from 'ff-element/src/utils/request';
  export default {
    data() {
      return {
        menu: [],
        isShow:false,
        props:{
            code:"id",
             parentCode:'parentId',
              children:'children'
        }
      };
    },
    created(){
        axios.get("/getMenu").then(res=>{
             this.menu = res.data.data
             this.isShow = true
        })
    }
  };
</script>